Adds Grpc.newManagedChannel(String, ChannelCredentials, NameResolverR…#11901
Adds Grpc.newManagedChannel(String, ChannelCredentials, NameResolverR…#11901AgraVator wants to merge 12 commits intogrpc:masterfrom
Conversation
20a6b37 to
6913156
Compare
4df7c4f to
4ee3512
Compare
2. removes visibleForTesting 3. improves the test case
…ResolverRegistry and NameResolverProvider.
2b54502 to
a627be6
Compare
7d98147 to
e65d7ca
Compare
ejona86
left a comment
There was a problem hiding this comment.
This looks much closer to ready. I think the various components are in-place, we just need to tweak things.
ejona86
left a comment
There was a problem hiding this comment.
The version number will need to be updated again.
| * @since 1.40.0 | ||
| * */ | ||
| protected String getScheme() { | ||
| public String getScheme() { |
There was a problem hiding this comment.
The review was held up to see if this change would cause problems. It potentially could, but I suspect all implementations of NameResolverProvider today are not implementing getScheme() and instead just implementing getDefaultScheme(). Not even delegating NRPs like SecretGrpclbNameResolverProvider and GoogleCloudToProdNameResolverProvider have getScheme() implemented. (Nor are there any implementations of getScheme() inside google3.) So this is a better time to make it public.
Fixes #11055
Exposes a new method for channel creation which accepts NameResolverRegistry